<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="/common/tags.jsp" %>
<!DOCTYPE html>
<html>
<head>
  <title></title>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <meta charset="UTF-8">
  <meta name="Keywords" content="">
  <meta name="description" content="">
  <%@include file="/common/style.jsp" %>
  <link rel="stylesheet" type="text/css" href="${static_url}/ui/app/assets/css/uc.css">
  <style>
    .stock-area input {
      border: 1px solid #cdcdcd;
      width: 33px;
      text-align: center;
      margin: 0 5px;
      padding: 1px!important;
      height: 15px!important;
      line-height: 15px!important;
    }
    .stock-area input {
      border-color: #999;
    }
    .stock-area  .textbox {
      height: 18px!important;
      line-height: 18px!important;
      padding: 9px 0!important;
      margin: 0;
      width: 50px;
    }
  </style>

  <%@include file="/common/javascript.jsp" %>
</head>
<body class="wide">
<!-- 头部 -->
<%@include file="/common/myHeader.jsp" %>
<!-- /头部 -->

<!-- 主体 -->
<div style="border-top: solid 1px #dcdcdc;" class="mb10"></div>
<div class="g">
  <!--面包屑 -->
  <%--<div class="breadcrumb-area"><a href="/" title="首页">首页</a>&nbsp;&nbsp;\&nbsp;&nbsp;<em
          id="personCenter"><span>我的商城</span></em><em id="pathPoint"></em><span id="pathTitle"></span></div>--%>
</div>
<div class="h20"></div>
<div class="g">
  <div class="fr u-4-5"><!-- 20141212-栏目-start -->
    <div class="section-header">
      <div class="fl">
        <h2><span>我的模版</span></h2>
      </div>
    </div>
    <div class="h20"></div>

    <!-- 20141222-我的订单-列表-start -->
    <div class="myOrder-record" id="myOrders-list-content">
      <div class="list-group-title">
        <table border="0" cellpadding="0" cellspacing="0">
          <thead>
          <tr>
            <th class="col-pro">商品模版</th>

            <th class="col-operate">操作</th>
          </tr>
          </thead>
        </table>
      </div>
      <div class="list-group" id="list-group">
        <c:forEach items="${pager.records}" var="item" varStatus="status">
          <div class="list-group-item">
            <div class="o-pro">
              <table border="0" cellpadding="0" cellspacing="0">
                <tbody>

                <tr id="template_${item.id}">

                  <td class="col-pro-info">
                    <p>
                     <b> ${item.name}</b>[${item.communityName}]
                    </p>
                    <p>
                      <span>${item.houseSize}㎡</span><em>,</em>
                      <span>${item.room}室${item.hall}厅${item.toilet}卫</span><em>,</em>
                      <span>${item.houseFloor1}/${item.houseFloor2}层</span><em>,</em>
                      <span>${item.decorate}</span><em>,</em>
                      <span><b style="color: #eb5f00;">${item.price}万</b></span><em></em>
                    </p>
                  </td>

                  <td rowspan="1" class="col-operate">
                    <p>
                      <a href="${ctx}/my/seller/importGoods.htm?templateId=${item.id}"><span>导入</span></a>
                      <a href="javascript:deleteGoodsTemplate(${item.id})"><span>删除</span></a>
                    </p>
                  </td>
                </tr>

                </tbody>
              </table>
            </div>
          </div>
        </c:forEach>
      </div>

      <div class="list-group-page">
        <div class="multi-page">
          <c:if test="${pager.totalRecord>0}">
            <jsp:include page="/common/ui/pagerUI.jsp">
              <jsp:param name="pageNo" value="${pager.pageNo}"/>
              <jsp:param name="pageCount" value="${pager.pageCount}"/>
              <jsp:param name="total" value="${pager.totalRecord}"/>
              <jsp:param name="callback" value="callback"/>
            </jsp:include>
          </c:if>

          <c:if test="${pager.totalRecord<=0}">
            暂无数据！
          </c:if>
          <script>
            function callback(pageNo){
              alert(pageNo);
            }
          </script>
        </div>
      </div>
    </div>
    <!-- 我的订单-列表-end -->
  </div>
  <div class="fl u-1-5">
    <!--左边菜单 -->
    <%@include file="left.jsp" %>
  </div>
  <div class="hr-45"></div>
</div>
<script>
  function deleteGoodsTemplate(id){
    if(confirm("确定删除？")){
      $.post("${ctx}/my/seller/deleteGoodsTemplate.htm",{
        templateId:id
      },function(data){
        if(data.status){
          alert("删除成功！");
          $("#template_"+id).remove();
        }else{
          alert("删除失败！");
        }
      },"json");
    }
  }
</script>
<!-- /主体 -->


<!-- 底部 -->
<%@include file="/common/footer.jsp" %>
<!-- /底部 -->

</body>
</html>
